/** 
 * @Title:  IMMListenerRelativeLayout.java 
 * @author:  Abtswiathؼlxy
 * @data:  2016��6��21�� ����11:31:09 <����ʱ��>
 * 
 * @history��<��������ʷ��¼>
 *
 * @modifier: <�޸���>
 * @modify date: 2016��6��21�� ����11:31:09 <�޸�ʱ��>
 * @log: <�޸�����>
 *
 * @modifier: <�޸���>
 * @modify date: 2016��6��21�� ����11:31:09 <�޸�ʱcom.sunmi.usercenter.ui.view
 */
package com.sunmi.usercenter.ui.view;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.RelativeLayout;

/**
 * TODO<������������Ǹ�ʲô��>
 * 
 * @author Abtswiathؼlxy
 * @versionCode 1 <ÿ���޸��ύǰ+1>
 */
public class IMMListenerRelativeLayout extends RelativeLayout {
	private InputWindowListener listener;

	public IMMListenerRelativeLayout(Context context) {
		super(context);
	}

	public IMMListenerRelativeLayout(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public IMMListenerRelativeLayout(Context context, AttributeSet attrs, int defStyleAttr) {
		super(context, attrs, defStyleAttr);
	}

	@Override
	protected void onLayout(boolean changed, int l, int t, int r, int b) {
		super.onLayout(changed, l, t, r, b);
		if(listener!=null){
			listener.isShow();
		}
	}

	public void setListener(InputWindowListener listener) {
		this.listener = listener;
	}

	public interface InputWindowListener {
		void isShow();
	}

}